package com.yilemall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yilemall.common.utils.PageUtils;
import com.yilemall.product.entity.SpuInfoEntity;
import com.yilemall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author wangxiaoqi
 * @email wxq_strive@163.com
 * @date 2020-10-09 15:16:44
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 新增商品，发布大数据
     * @param vo
     */
    void savesupInfo(SpuSaveVo vo);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    /**
     * 条件查询spu管理
     * @param params
     * @return
     */
    PageUtils queryPageByCondtion(Map<String, Object> params);

    /**
     * 商品上架
     * @param spuId
     */
    void up(Long spuId);
}

